package com.ruoyi.sl.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 大工序对象 sl_gprocess
 * 
 * @author admin
 * @date 2024-06-05
 */
public class SlGprocess extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 大工序ID */
    private Long gprocessId;

    /** 大工序名称 */
    @Excel(name = "大工序名称")
    private String gprocessName;

    /** 大工序编码 */
    @Excel(name = "大工序编码")
    private String gprocessCode;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 模块ID */
    private Long moduleId;

    /** 车间ID */
    private Long workshopId;

    /** 对应部门ID */
    @Excel(name = "对应部门ID")
    private Long deptId;


    @Excel(name = "所属车间", targetAttr = "workshopName", type = Excel.Type.EXPORT)
    private SlWorkshop workshop;

    @Excel(name = "所属模块", targetAttr = "moduleName", type = Excel.Type.EXPORT)
    private SlModule module;

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public void setGprocessId(Long gprocessId)
    {
        this.gprocessId = gprocessId;
    }

    public Long getGprocessId() 
    {
        return gprocessId;
    }
    public void setGprocessName(String gprocessName) 
    {
        this.gprocessName = gprocessName;
    }

    public String getGprocessName() 
    {
        return gprocessName;
    }
    public void setGprocessCode(String gprocessCode) 
    {
        this.gprocessCode = gprocessCode;
    }

    public String getGprocessCode() 
    {
        return gprocessCode;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setModuleId(Long moduleId) 
    {
        this.moduleId = moduleId;
    }

    public Long getModuleId() 
    {
        return moduleId;
    }
    public void setWorkshopId(Long workshopId) 
    {
        this.workshopId = workshopId;
    }

    public Long getWorkshopId() 
    {
        return workshopId;
    }

    public SlWorkshop getWorkshop() {
        return workshop;
    }

    public void setWorkshop(SlWorkshop workshop) {
        this.workshop = workshop;
    }

    public SlModule getModule() {
        return module;
    }

    public void setModule(SlModule module) {
        this.module = module;
    }

    @Override
    public String toString() {
        return "SlGprocess{" +
                "gprocessId=" + gprocessId +
                ", gprocessName='" + gprocessName + '\'' +
                ", gprocessCode='" + gprocessCode + '\'' +
                ", status='" + status + '\'' +
                ", moduleId=" + moduleId +
                ", workshopId=" + workshopId +
                ", deptId=" + deptId +
                ", workshop=" + workshop +
                ", module=" + module +
                '}';
    }
}
